<?php

namespace App\Model\UserRoleAuth;

use App\Model\Model;

class AuthModel extends Model
{

    protected ?string $connection = 'organ';

    protected ?string $table = 'auth';

    protected array $guarded = [];

    protected array $casts = [
        'id' => 'int',
        'organ_id'  => 'int',
        'auth_name' => 'string',
        'auth_code' => 'string',
        'parent_id' => 'int',
        'level' => 'int',
        'type' => 'int',
        'status' => 'int',
        'created_at'  => 'date:Y-m-d h:i:s',
        'updated_at'  => 'date:Y-m-d h:i:s',
    ];
}